{% extends 'base.html' %}
{% block main %}
<div class="container">
<div style="display:block;margin:0 auto" >
<h1>添加设备</h1>
    </div>
<form class="form-horizontal"  method="post" action="{{ url_for('add')}}">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.hostname.label }}</label>
    <div class="col-sm-10">
      {{ addhost.hostname }}
    </div>
  </div>
      <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.ipaddr.label}}</label>
    <div class="col-sm-10">
      {{ addhost.ipaddr }}
    </div>
  </div>


      <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.username.label}}</label>
    <div class="col-sm-10">
      {{ addhost.username}}
    </div>
  </div>

          <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.password.label}}</label>
    <div class="col-sm-10">
     {{ addhost.password}}
    </div>
  </div>

     <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.sshport.label}}</label>
    <div class="col-sm-10">
       {{ addhost.sshport}}
    </div>
  </div>

      <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.groups.label}}</label>
    <div class="col-sm-10">
       {{ addhost.groups}}
    </div>
  </div>

          <div class="form-group">
                  <label for="inputEmail3" class="col-sm-2 control-label">{{ addhost.Desc.label}}</label>
    <div class="col-sm-10">
       {{ addhost.Desc}}
    </div>
  </div>

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-success">添加</button>
    </div>
  </div>
</form>
    </div>
{% endblock %}